package com.czkevin.wusan.items;

import com.czkevin.cif.BaseBlock;
import com.czkevin.cif.CIFItemInstance;
import com.czkevin.wusan.gui.AnswerRipperWindow;
import de.tr7zw.nbtapi.NBTCompound;
import org.bukkit.Material;
import org.bukkit.event.player.PlayerInteractEvent;

public class AnswerRipper extends BaseBlock {
    @Override
    public String getDisplayName(NBTCompound nbtCompound) {
        return "\u00a7e\u00a7l答案撕去器";
    }

    @Override
    public void onBlockUse(CIFItemInstance instance, PlayerInteractEvent event) {
        new AnswerRipperWindow().open(event.getPlayer());
    }

    @Override
    public Material getModelMaterial() {
        return Material.WRITTEN_BOOK;
    }

    @Override
    public int getCustomModelData(CIFItemInstance instance) {
        return 857004;
    }
}
